package cn.changein.framework.service.setting.contactType;

import cn.changein.framework.kernel.model.response.ResponseData;
import cn.changein.framework.model.setting.contactType.entity.ContactType;
import cn.changein.framework.model.setting.contactType.model.params.ContactTypeParam;
import cn.changein.framework.model.setting.contactType.model.result.ContactTypeResult;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 单位类型 服务类
 * </p>
 *

 * @Date 2020-10-27
 * @Copyright: companyName
 * @Version 1.0
 * @Since JDK1.8
 */
public interface ContactTypeService extends IService<ContactType> {

    /**
     * 新增
     *

     * @Date 2020-10-27
     */
    ResponseData add(ContactTypeParam param);

    /**
     * 删除
     *

     * @Date 2020-10-27
     */
    ResponseData delete(ContactTypeParam param);

    /**
     * 批量删除单位类型
     *
     * @param contactTypeIds
     * @return
     */
    ResponseData deleteList(String[] contactTypeIds);

    /**
     * 更新
     *

     * @Date 2020-10-27
     */
    ResponseData update(ContactTypeParam param);

    /**
     * 查询单条数据，Specification模式
     *

     * @Date 2020-10-27
     */
    ContactTypeResult findBySpec(ContactTypeParam param);

    /**
     * 查询列表，Specification模式
     *

     * @Date 2020-10-27
     */
    List<ContactTypeResult> findListBySpec(ContactTypeParam param);

    /**
     * 查询分页数据，Specification模式
     *

     * @Date 2020-10-27
     */
    Page<Map<String, Object>> findPageBySpec(ContactTypeParam param);

}
